ubg_health_create_bar
Syntax:
ubg_health_create_bar(layer, sprite, x, y, health_min, health_max, chunked, direction, event)
Arguments:
| Argument Name | Type | Description | 
|---|---|---|
| layer | layer_id | id or name of the layer to create the healthbar on | 
| sprite | sprite | id of the sprite to use as the health icon | 
| x | real | x-position to create the healthbar at | 
| y | real | y-position to create the healthbar at | 
| health_min | real | minimum value that the health can be | 
| health_max | real | maximum value that the health can be | 
| chunked | bool | whether or not to use the 'chunked' effect (requires extra subimage!) | 
| direction | UBG_HEALTH_DIRECTION | enum value from UBG_HEALTH_DIRECTION specifying which direction the healthbar should fill up | 
| event | UBG_HEALTH_RENDER_EVENT | enum value from UBG_HEALTH_RENDER_EVENT specifying to render in draw or gui | 
Returns: (real)
Description:
Loading page...
